package com.isdust.zor.core;

import com.isdust.zor.core.util.SerializableList;

import java.util.Arrays;

/**
 *
 * Created by zor on 2016/10/27.
 */

public final class Habitat {
//    "CREATE TABLE IF NOT EXISTS habit (_id INTEGER PRIMARY KEY AUTOINCREMENT, " +
//            "title VARCHAR, timer VARCHAR, days SMALLINT, " +
//            "yinsi VARCHAR,xiangxian int," +
//            "qiandaosj VARCHAR,createdate VARCHAR)";

    public final String imageID;//图片id

    public final String title;//标题
    public final String clock;//闹钟
    public final int days;//坚持天数
    public final int privacy;//隐私分类
    public final int catagory;//象限分类
    public final String createdate;//创建时间
    private String[] sign;//签到时间表

    public Habitat(String imageID, String title, String clock, int days, int privacy, int catagory, String createdate, String[] sign) {
        this.imageID = imageID;
        this.title = title;
        this.clock = clock;
        this.days = days;
        this.privacy = privacy;
        this.catagory = catagory;
        this.createdate = createdate;
        this.sign = sign;
    }

    public String[] getSign() {
        return sign;
    }

    @Override
    public String toString() {
        return "Habitat{" +
                "imageID='" + imageID + '\'' +
                ", title='" + title + '\'' +
                ", clock='" + clock + '\'' +
                ", days=" + days +
                ", privacy=" + privacy +
                ", catagory=" + catagory +
                ", createdate='" + createdate + '\'' +
                ", sign=" + Arrays.toString(sign) +
                '}';
    }
}
